package com.lovo.invoicing.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.management.relation.Role;
import java.io.Serializable;
import java.util.List;

@Data
@TableName("t_user")
public class UserBean implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer userId;
    private String userName;
    private String passWord;
    private String realName;
    private String phoneNumber;
    @JsonIgnore
    @TableField(exist = false)
    private List<Role> roleList;
    @TableField(exist = false)
    @JsonIgnore
    private List<Integer> limitList;
}
